/**
*@Description:group框架
*@Author:lichuxue
*@Date:2020/09/15 16:48:51
*@todo:
*@param:{String}--title--框架主题
*@useage: <base-group :title="title"></base-group>
*
<template>
  <div class="base-group-container">
    <div :class="{'base-group-container-title':true,'base-group-margin': !isSign}">
     <!-- 目前标志固定 -->
      <span v-if="isSign" class="img-span"></span>
      {{title}}
      <slot name="right"></slot>
    </div>
    <!--这里插入父组件在引用子组件内部的内容  -->
    <slot></slot>
  </div>
</template>
<script>
export default {
  props: {
    title: {
      type: String,
    },
    isSign: {
      type: Boolean,
      default: true,
    },
  },
};
</script>
<style lang="less" scoped>
.base-group-container{
  background-color: #ffffff;
  padding: 5px 0 0 0;
  border-radius: 5px;
  text-align: left;
  margin: 10px;
  .base-group-container-title{
    text-align: left;
    min-height: 40px;
    line-height: 40px;
    border-bottom: 1px #E1E1E1 solid;
    font-size: 16px;
    font-weight: bold;
    .img-span{
      width: 13px;
      display: inline-block;
      height: 10px;
      background-color: #009B63;
      border-top-right-radius: 5px;
      border-bottom-right-radius: 5px;
    }
  }
  .base-group-margin{
    padding-left: 15px;
    padding-right: 15px;
  }
}
</style>
